package com.mlk.car.po;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mlk.core.constants.Constant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author trekxu
 * @since 2019-07-02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EngCarEvilLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 车辆的id
     */
    private Integer carId;
    /**
     * 违规的原因
     */
    private String remark;
    /**
     * 违规的人员姓名
     */
    private String evilName;
    /**
     * 录入时间
     */
    @JsonFormat(pattern = Constant.DATE_TIME_FORMAT)
    private Date createTime;
    /**
     * 录入人
     */
    private String createName;

}
